import http from '../../../base/api/public'
import querystring from 'querystring'
let sysConfig = require('@/../config/sysConfig')
// let apiUrl = sysConfig.xcApiUrlPre;
let apiUrl = 'api';

//工作上报
export const insertWork = (params) => {
  return http.requestPost(apiUrl+'/work/insertWork',params)
}

//
export const selectWorkPage = (params) => {
  return http.requestPost(apiUrl+'/work/selectWorkPage',params)
}

//工作审核列表
export const selectCheckWorkPage = (params) => {
  return http.requestPost(apiUrl+'/work/selectCheckWorkPage',params)
}

//审核
export const update = (params) => {
  return http.requestPost(apiUrl+'/work/update',params)
}

//校验当前登录人身份
export const checkRole = () => {
  return http.requestQuickGet(apiUrl+'/userinfo/checkRole')
}

//新增和更新生产线
export const insertOrUpdateFlow = (params) => {
  return http.requestPost(apiUrl+'/flow/insertOrUpdateFlow',params)
}

//分页查询生产线列表
export const selectFlowVOPage = (params) => {
  return http.requestPost(apiUrl+'/flow/selectFlowVOPage',params)
}
